<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta property="qc:admins" content="2715267767670016375">
    <meta name="baidu-site-verification" content="olyBm8u9gh">
    <meta name="baidu-site-verification" content="fP14YEhnuH">
    <meta name="baidu-site-verification" content="4PF6wA7PTE">
    <meta name="baidu_union_verify" content="d1fe590afc08fcb91a52220e26361aa0">
    <title>游戏卖-专业安全快捷的游戏交易平台-提供游戏币交易|装备交易|账号交易|寄售担保交易|点卡充值|APP充值|游戏点券|手游充值</title>
    <meta name="keywords" content="游戏交易平台,手机游戏交易,游戏交易网站,网络游戏交易,剑灵,魔域,圣斗士星矢,刀剑2,上古世纪,地下城与勇士,九阴真经，笑傲江湖,游戏币,装备,账号,寄售,担保,点卡,金,金币,银子,DNF游戏币，ucmaim.com">
    <meta name="description" content="游戏卖是国内最方便、安全的游戏交易平台，提供游戏币交易|点卡充值|游戏装备|游戏账号|QQ游戏交易道具等买卖服务，支持DNF游戏币、魔域魔石零售交易等多种热门游戏专业综合交易网">
    <script type="text/javascript" src="http://www.ucmaim.com/Public/Ucmaim/Home/Js/jquery-1.8.3.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://www.ucmaim.com/Public/Ucmaim/Home/Css/global.css">
<link rel="stylesheet" type="text/css" href="http://www.ucmaim.com/Public/Ucmaim/Home/Css/global_new.css">
<link rel="stylesheet" type="text/css" href="http://www.ucmaim.com/Public/Ucmaim/Home/Css/Public.css">
<link rel="stylesheet" type="text/css" href="http://www.ucmaim.com/Public/Ucmaim/Home/Css/login.css">
<script type="text/javascript" src="http://www.ucmaim.com/Public/Ucmaim/Home/Js/jquery.form.min.js"></script>
<style>
  label.error{display:block; color:red; top:41px; left:135px;position:absolute;}
  input.error{border:red 1px solid !important; outline: none;}
  .txyzzl li{position:relative;}
</style>
</head>
<body>
<div class="top_box">
    <div class="top"><!--顶部区域-->
        <div class="top_l left">
            <dl>
            <?php if(empty($member_info)): ?><span id="span_user">
                    <dt>您好！欢迎访问游戏卖</dt>
                    <dt><a href="<?php echo U('Home/Member/Login', 'ref='.$current_url, '');?>" class="blue" rel="nofollow">登录</a></dt>
                    <dt><a href="<?php echo U('Home/Member/Register');?>" class="blue" rel="nofollow">免费注册</a></dt>
                </span>
            <?php else: ?>
                <span id="span_user">
                    <dt><a rel="nofollow" href="<?php echo U('Home/Member/Index');?>"><?php echo ($member_info["nickname"]); ?></php></a>，欢迎回来！</dt>
                    <dt class="top_grayline">|</dt>
                    <dt><a href="<?php echo U('Home/Member/Logout');?>" rel="nofollow">注销</a></dt>
                </span><?php endif; ?>
            </dl>
        </div>
    </div>
</div>
<a class="showScreenPic"></a>
<div class="header">
    <div class="left">
        <h1><a id="homePageLogoLinkUrl" href="<?php echo U('Home/Index');?>" title="游戏卖" style="cursor:default;"><img id="homePageLogo" src="http://www.ucmaim.com/Public/Ucmaim/Home/Images/common/indexlogo.png" alt="游戏卖"></a></h1>
    </div>
    <div class="top_search pusht">
        <div class="t_search"> <a href="javascript:void(0)" class="gray hover">简单搜索</a> </div>
        <div class="s_blue_box">
            <form method="get" action="<?php echo U('Home/Goods/Items');?>" name="searchForm" id="searchForm">
            <ul class="hide" style="display: block;">
                <input id="txt_search_simple" type="text" name="keyword" value="<?php echo ($_GET['keyword']); ?>" class="input gray_a" placeholder="关键字找游戏">
                <input type="hidden" name="sort" value="" id="sort">
                <input type="hidden" name="g" id="g">
            </ul>
            </form>
        </div>
        <a href="javascript:toSearch()"  id="search_main" class="search" style="width: 200px;" >搜索</a>
        <!--页面配置的热门搜索推荐-->
        <div class="hotsearch">
            <dl>
            </dl>
        </div>
    </div>
</div>
<script type="text/javascript">
    function toSearch(){
            $('#searchForm').submit();
    }
</script>
<div class="clear"></div>
<!--中间内容-->
<div class="center">
  <div class="zhlc">
    <?php if($step == 1): ?><div class="zhlc_xzs_2 zhlc_wz_1">1. 填写绑定手机号码 </div>
      <?php else: ?>
      <div class="zhlc_xzs_1 zhlc_wz_1">1. 填写绑定手机号码 </div><?php endif; ?>

    <?php if($step == 2): ?><div class="zhlc_xzs_2 zhlc_wz_2">2. 短信验证</div>
      <?php else: ?>
      <div class="zhlc_xzs_1 zhlc_wz_2">2. 短信验证</div><?php endif; ?>

    <?php if($step == 3): ?><div class="zhlc_xzs_2 zhlc_wz_3">3. 重置密码</div>
      <?php else: ?>
      <div class="zhlc_xzs_1 zhlc_wz_3">3. 重置密码</div><?php endif; ?>
  </div>
  <div class="txyzzl">
    <form id="registerForm" action="<?php echo U('Home/Member/ForgetPassword');?>" method="post">
    <?php switch($step): case "1": ?><!-- 第一步 -->
        <ul>
          <li><span><strong style="color:#F90">*</strong> 绑定手机号:</span>
            <input name="tel" type="text" id="tel" size="30" maxlength="11">
          </li>
          <li> <span><strong style="color:#F90">*</strong> 验证码:</span>
            <input type="text" id="img_valid" name="code" size="12" maxlength="4">
            <img id="register_checkCodeImg" src="<?php echo U('Home/Api/VerifyCode');?>" style="display: inline;vertical-align: middle;width: 90px; height:45px;" onclick="this.src='/Home/Api/VerifyCode?' + new Date().getTime()+Math.random();" /> <a style=" cursor: pointer; vertical-align:middle;" onclick="document.getElementById('register_checkCodeImg').src='/Home/Api/VerifyCode?' + new Date().getTime()+Math.random();">换一张</a> </li>
          <li><span>&nbsp;</span>
            <input type="hidden" name="step" value="2" />
            <input type="submit" value="" class="xyb_button" style="height:51px;">
          </li>
        </ul>

        <script type="text/javascript">
          $(document).ready(function(){
            $("#registerForm").validate({
              rules: {
                tel: {
                  required: true,
                  number: true,
                  rangelength: [11, 11],
                  remote:{
                    type: 'POST',
                    url: "<?php echo U('Home/Api/getMobile');?>",
                    data: {
                      tel: function() {
                        return $("#tel").val();
                      }
                    }
                  }
                },
                code: {
                  required: true,
                  rangelength: [4, 4],
                  remote:{
                    type: 'POST',
                    url: "<?php echo U('Home/Api/CheckVerifyCode');?>",
                    data: {
                      img_valid: function() {
                        return $("#img_valid").val();
                      }
                    }
                  }
                }
              },

              messages: {
                tel: {
                  required: '请输入您注册时的手机号码',
                  number: '请输入正确的手机号码',
                  rangelength: '请输入正确的手机号码',
                  remote: '此手机号码不存在，请确认'
                },
                code: {
                  required: '请输入验证码',
                  rangelength: '验证码不正确',
                  remote: '验证码不正确'
                }
              }
            });
          });
        </script><?php break;?>

      <?php case "2": ?><!-- 第二步 -->
        <ul>
          <li style="line-height:10px;">&nbsp;</li>
          <li><span><strong style="color:#F90">*</strong> 请输入短信验证码:</span>
            <input name="smscode" type="text" id="smscode" size="30" maxlength="6">
          </li>
          <li><span>&nbsp;</span>
            <input type="hidden" name="tel" id="tel" value="<?php echo ($tel); ?>" />
            <input type="hidden" name="step" value="3" />
            <input type="submit" value="" class="xyb_button" style=" height:51px;" />
          </li>
        </ul>

        <script type="text/javascript">
          $(document).ready(function(){
            $("#registerForm").validate({
              rules: {
                smscode: {
                  required: true,
                  number: true,
                  rangelength: [6, 6],
                  remote:{
                    type: 'POST',
                    url: "<?php echo U('Home/Api/SmsCodeVerify');?>",
                    data: {
                      code: function() {
                        return $("#smscode").val();
                      },
                      tel: function(){
                        return $('#tel').val();
                      }
                    }
                  }
                }
              },

              messages: {
                smscode: {
                  required: '请输入您手机上收到的验证码',
                  number: '验证码输入不正确',
                  rangelength: '验证码输入不正确',
                  remote: '验证码输入不正确'
                }
              }
            });
          });
        </script><?php break;?>

      <?php case "3": ?><!-- 第三步 -->
        <ul>
          <li><span><strong style="color:#F90">*</strong> 请输入新密码:</span>
            <input name="password" type="password" id="password" size="20" maxlength="20">
          </li>
          <li><span><strong style="color:#F90">*</strong>再输一次:</span>
            <input name="password_confirm" type="password" id="password_confirm" size="20" maxlength="20">
          </li>

          <li><span>&nbsp;</span>
            <input type="hidden" name="step" value="4" />
            <input type="submit" value="" class="xyb_button" style=" height:51px;">
          </li>
        </ul>

        <script type="text/javascript">
          $(document).ready(function(){
            $.validator.addMethod("password", function(value) {
              var v = $.trim(value);
              var preg = /^(?![^a-zA-Z]+$)(?!\D+$).{6,20}$/;
              return preg.exec(value) ? true : false;
            }, "密码由6-20位字符组成，需同时包含字母和数字");

            $("#registerForm").validate({
              rules: {
                password: {
                  required: true,
                  password: true
                },
                password_confirm: {
                  required: true,
                  password: true,
                  equalTo: "#password"
                }
              },
              messages: {
                password: {
                  required: '请输入新密码',
                  password: '密码由6-20位字符组成，需同时包含字母和数字',
                },
                password_confirm: {
                  required: '请输入新密码',
                  password: '密码由6-20位字符组成，需同时包含字母和数字',
                  equalTo: '您两次输入的密码不一样，请重新输入'
                }
              }
            });
          });
        </script><?php break; endswitch;?>
    </form>
  </div>
</div>
<div class="clear"></div>
<div class="footer"><!--底部区域-->
    <div class="advan">
        <ul>
            <li class="s1">寄售担保 无货保赔</li>
            <li class="s2">安全服务 保障资金</li>
            <li class="s3">7*24小时 专属客服</li>
            <li class="s4">权威认证 安全可信</li>
        </ul>
    </div>
    <div class="link"><!--文字链接-->
        <a href="<?php echo U('Home/About/aboutus');?>" target="_blank" rel="nofollow">关于游戏卖</a><span>|</span> <a href="<?php echo U('Home/About/contactus');?>" target="_blank" rel="nofollow">联系我们</a><span>|</span> <a href="<?php echo U('Home/About/mian');?>" target="_blank" rel="nofollow">免责声明</a><span>|</span> <a href="<?php echo U('Home/About/hr');?>" target="_blank" rel="nofollow">诚聘英才</a><span>|</span>  <a href="<?php echo U('Home/About/cooperation');?>" target="_blank" rel="nofollow">商务合作</a><span>|</span>  <a href="<?php echo U('Home/About/qualification');?>" target="_blank" rel="nofollow">企业资质</a><span>|</span> <a href="http://www.mcprc.gov.cn/" target="_blank">文化部文网文</a>
    </div>
    <div class="copyright gray_a font_a">© 2010-2015 中云通科技股份有限公司 版权所有 <a href="http://www.miibeian.gov.cn" target="_blank" rel="nofollow">粤ICP备14011508号-1</a></div>
    <div class="link"><!--文字链接--></div>
    <!--版权信息-->
    <div class="honor">
        <ul style="margin-left: 110px;">
            <li><a href="http://www.miibeian.gov.cn" target="_blank" class="s2" rel="nofollow"></a></li>
            <li><a href="http://www.cyberpolice.cn/wfjb/" target="_blank" class="s3" rel="nofollow"></a></li>
            <li><a href="https://www.alipay.com" target="_blank" class="s4" rel="nofollow"></a></li>
            <li><a href="<?php echo U('Home/About/wh');?>" target="_blank" class="s6" rel="nofollow"></a></li>
        </ul>

    </div>
</div>
<?php if(!empty($debug_info)): ?><script type="text/javascript">alert('<?php echo ($debug_info); ?>')</script><?php endif; ?>
</body>
</html>